package cn.cloud.butler.uploadapi.repository;

import cn.cloud.butler.uploadapi.domain.MacAlarmCurrentEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface MacAlarmCurrentRepository extends JpaRepository<MacAlarmCurrentEntity,Integer> {

    List<MacAlarmCurrentEntity> findByMacSn(String macSn);

    @Transactional
    void deleteByMacSn(String macSn);
}
